﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="subjectList.aspx.cs" Inherits="Manage_Cms_subjectList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>

    <script type="text/javascript">
    var $ = function(id){return document.getElementById(id);}
    function displayChildren(parentid,obj)
    {
        if($(parentid).style.display=="none")
        {
            $(parentid).style.display="block";
            obj.src="/Manage/Pic/tree/minus.gif";
        }
        else
        {
            $(parentid).style.display="none";
            obj.src="/Manage/Pic/tree/plus.gif";
        }
    }
    </script>

    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <form id="form1" action="?" method="post" onsubmit="CheckSelect();">
        <table width="95%" align="center" id="ddd">
            <tr>
                <td align="right">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="left">
                                <input type="button" value="新建专题" onclick="location.href='subject.aspx?siteid=<%=siteid %>'"
                                    class="button" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div class="column">
            <div class="columntitle">
                专题管理</div>
            <table cellspacing="0" cellpadding="0" align="center" border="0" style="width: 100%;">
                <tr class="summary-title" align="Center" style="height: 22px;">
                    <td align="center" style="width: 316px">
                        专题名称</td>
                    <td align="center" style="width: 370px">
                    </td>
                    <td align="Center">
                        操作</td>
                </tr>
                <%
                    foreach (KeRui.Model.CmsNode modelCmsNode in listCmsNode)
                    {

                        listCmsTemplateFile = bllCmsTemplateFile.GetList("FileType=8 and FilePath='" + modelCmsNode.TemplateFile + "'");
                        int FileID = 0;
                        int TemplateID = 0;
                        foreach (KeRui.Model.CmsTemplateFile modelCmsTemplateFile in listCmsTemplateFile)
                        {
                            FileID = modelCmsTemplateFile.FileID;
                            TemplateID = modelCmsTemplateFile.TemplateID;
                        }
                %>
                <tr align="Center" style="height: 22px;">
                    <td align="center" style="width: 316px">
                        <a href='/aspx/redirect.aspx?nodeid=<%=modelCmsNode.NodeID %>' target='blank'><%=modelCmsNode.NodeName %></a>
                    </td>
                    <td align="center" style="width: 370px">
                    </td>
                    <td align="center"> <a href="NewSubject.aspx?siteid=<%=siteid %>&act=edit&fileid=<%=FileID %>">修改</a> | 
                        <a href="subjectList.aspx?siteid=<%=siteid %>&act=del&FileID=<%=FileID %>&nid=<%=modelCmsNode.NodeID %>" onclick="javascript:return confirm('此操作将会删除专题 <%=modelCmsNode.NodeName %> ，确认吗？');">删除</a>
                    </td>
                </tr>
                <%
                    }
                %>
            </table>
        </div>
    </form>
</body>
</html>
